Make some common methods with const parameters and const definition.