move repeated scenery initialization code to a function