Move action.rb from models to services.