Unified all the stuff we do to entries before saving them in the db in the before_validation hook.