I think it makes sense to export getStyleFunction.