That sounds like beforeSave/Validate logic though