Initial draft for layout metadata upgrader.