Remove legacy http api