[#LIB-155] Refactor configuration store/read, reduce repetitive code