move normalize code to a separate file in /vendor