WIP: Start DRYING out chart actions template
What does this MR do?
Remove some duplicate code. Idea from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14858#note_200467044
Remove some duplicate code. Idea from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14858#note_200467044