Move current issue board serialization to core
Migrates the serialization parts of BoardsHelper
to CE / core.
part of https://gitlab.com/gitlab-org/gitlab-ce/issues/53811
CE-backport: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/30507
Edited by 🤖 GitLab Bot 🤖