Use flatten instead of map for role to audience mapping

_.flatten performs the same operation to _.map but also flattens any arrays returned into a single array. This is an ideal behavior as it means a single role can map to multiple audiences when the roleToAudienceMapFunction is overridden by a consumer.