removed circular dependency in is_template (Investigation <-> Activity)

[#59868342]
https://www.pivotaltracker.com/story/show/59868342