Move back node positioning logic into its class