Avoid polluting the global namespace
Use the far less ambiguous `as` syntax
Cleanup: removed dead code
Cleanup: minor styling nit