Add factory for two arguments operations