There is no need to make resourcesRoot a property: you can remove val keyword to make it a constructor parameter