move OP_MUL simplification in a separate function