refactored definition utilties from expression to definition utils