Implement Repository for interfaces and commands.