task_allocator: Use config switches instead of magic defines