Code cleanup related to initSpeculativePageId()