Refactor routing a bit; Return nil for member routes if their ID is nil