Move the object creation into a migration.

Register now takes an array so all migrations can be performed at once.