Refactored product type check into separate method