[DT/AS] Refactor specs for resource controller