Remove templates from code