Refactoring: resolve revision directory from the top level
remove directory property from revision type