Moved namespace declaration and utility functions to a_common_libs plugin
#14438 refactored some code