Refactor: Replaced toXWithY with asX.withY