Extract position transformation logic to model