Move has_static_component function to modules/staticsync