Move entry_already_inserted
Move insert_energy_entry