Refactor #shared_config_roles_filter to be a method instead of attribute