A small refactor to extract invalid levels logic to it's own method.