juniper refactor