Refactoring position creation