Make requires decorator more class friendly.