Decouple entity framework from OAuth plugin