Refactor _setupCurrentTransform