Moves schema_from_header method to schema module.