Refactoring into prototypal objects.