|Refactor| moved license and allocation to nested resource