You can make shared functions createControls() and updateControls() and pass in the scene.
createControls()
updateControls()