Split member class into top-level class.