Remove duplicated Device code.