Trivial refactoring: rename method name and extract common checks
1 file changed