Setup: Make wfMemoryLimit() internal and simplify