core: Prune redundant includes