Reduce hard dependency on railties and active_model