Apply patch for Entity module.