Refactoring. Removed ActiveRecordConfig. Simplified ActiveRecord setup flow