Moved getting task configuration into separate method