I had thought of this function as quite low-level - the only "agreed" convention would be that ``feature_id`` is somewhere in the branch name. It would be up to the ``get_feature_info`` in lib.py to sort through the branches (using some regexes in config) into the hierarchy.

Or do you think we can't assume that feature_id will be in the branch names and that some other more complex rules might need to exist at this level?