Moves Foundation initialization to the application layout file.