refactor position management spec