Stop environment link needs to be refactored into a template
After the review apps MR !6669 (merged) has been merged we need to transform the repeated links to close an environment into a template.
Currently there are 3 places where the link is used, see this comment for more info.
Original discussion started here