function removeCommandParamsFromMetadata(layer) {
  // get layer user info
  let userInfo = NSMutableDictionary.dictionaryWithDictionary(layer.userInfo())

  // remove params
  userInfo.removeObjectForKey('datapopulator')

  // set new user info
  layer.setUserInfo(userInfo)
}
Removes command params from the layer metadata.

@param {MSLayer} layer