Refactor into a project details partial