Simplify config service by removing redundant code and directly accessing localStorage