Remove duplicated function.