Put @ApplicationScoped on certain beans to prevent circular dependecies
to cause problems.