library/refactor: use prototypal inheritance for forks.