Refactor Raphael paper into R2D3Element.