Reduce repeated code and merge modeactioncheck levels