Please find the similar snippets in "Install" method and make them free functions in a nameless namespace (or private methods, if it's more convenient)