Using partial instead of defining a new func