if Settings[:locations_enabled] do sometihing
if Settings[:organizations_enabled], etc..

Otherwise the migration will stop at this point.