Split schema functions into a separate file.