Hygiene: Move the overlay initialisation code into a separate file

Change-Id: I4dcdf9708b700c57679ff878275c5560a62e3a06