APIs getting replaced on deployment

For reference, I asked a similar question in the chapter comments thread here.