Refactored the shape of AppDefinition.tasks