Combine protocol and class fetching

Decreases the number of regex calls required for a 'match'.