refactor: Move version check to common code
Description
It moves the code that checks instance version to the common
folder and updates implementation similarly to the minimal_gitlab_version_policy.
Closes #1245 (closed)
Edited by Olena Horal-Koretska