Moved setup to a script to reduce the number of created layers.