Remove manual SQL from migration. Refs #1440