simple code refactoring in Preferential.java and PersistAdvancement.java