Replacing a function with the constant