Avoid code duplication on non-const member functions