moves interfaces into namespaced classes