Refactor if-conditional for (minutes < 10)-compensator