Introduce interface and factory
Merge remote-tracking branch 'origin/master'