added has_didactic_content field to tasks
appease rubocop and refactor a little in the process