Separate feature discovery (i.e. running hooks and reading feature files) and creation of feature labels in the local source. Also, add minimalist unit test.