Remove legacy php code