Use Object.freeze instead of defensive copies to avoid side effects.
Remove trailing whitespace.