strip unused require metadata