Factor out global classes