As I said I think it makes sense to export getStyleFunction (in feature.exports now).