Sorry, I was in a hurry of other things when wrote the last reply. What I was trying to say is to extract this `declHasEnforceAttribute` method to another class, maybe called `EnforceHelper`. What do you think?