dropbox refactor