A wrapper to form objects in ActiveRecord