Removed settings dependency on EF
Removed the cookie check as it isn't necessary.