Creating variants of functions that take an application, and providing a template for creating migrations.