Removed unused dependencies and bean