Move helper classes out of API root directory