Refactor: more clean-up of Rails event code.