Use immutable-js for recursive class namespace fn.