Put itemframe protection check in a separate method