Extract binding attribute locations into its own method