Change labelmap 'mapping' API to 'labels'