Clean EntityFramework reference