Move binding code out of ElementBinding