Refactor common functions from CustomJob controllers into BaseCustomJob controller