Remove legacy function.