Refactor manifest processing into dotfile class.