Separate middleware package.
Create UserDefault type.