Simplifying plugin class attribute logic.