Simplify class registration.