Remove duplicated function in common