Refactor processBindings

R=arv
BUG=

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