Remove duplicated codes