[PATCH 5/7] ntdll: Factor out some view manipulation functions.