Refactor executable for the ActiveRecord API.