Extract tag and range check to own trait