Replace type code State pattern
refactoring Rental::calculateRentalPoints