solutions/max_kaskevich/4/sources/4_6: small code refactoring.