Clean some parts of webelement c++ api.