Refactor for using a function name for condition inside
bed-recording validation