Method for checking rules moved to AbstractCodeHandler class