Here you can follow a review made on extensions regarding Nested Spaces. The main interest were the methods relative to the current space notion, which will have to be replaced by another ones.
In createDocumentReference(), new DocumentReference, getSpace, .space, .parent, .setParent, .getParent, request.parent, request.space, .getSpaceDocsName and .getSpacePreference columns you can see the number of occurrences of those methods in the application's code. In Livetable column is specified if a space column is present in the application's livetable or not. In Query column is specified how many queries are affected by space notion.