Slightly neater way to load class