Ofgem loss prompts in-house shake-up