The change adds no new functionality and aims to move flags definitions to subpackages that are using them. This should improve readability of the main function.