Remove dependency of active_record