Split big load-schema macro into more modular components.