Move boost-templates into other operator handling

First step in moving all of these operators into one place which might
make it possible to add new ones via a hook.

Change-Id: I362c55edaaf38df8eaab1dd80b92c755887e98df
Merge "Move boost-templates into other operator handling"