Refactor in advance of implementing prepareBinding

R=arv
BUG=

Review URL: https://codereview.appspot.com/13239048