Pattern from D3JS. Closure, single Getter/Setter and piped function call