Factor out the operator definitions.