Cognitive dysfunction following brain trauma results from sex-specific reactivation of the developmental pruning processes.