Refactored EF migrations code