Refactor ccuserdefault