Refactor to reuse Piwik components.