Remove duplicated code

This code will make ActiveRecord loaded too early.