Improve binop code
Share code