Reduce compile and runtime dependencies in Similarity Component (#157)

Reduce compile and runtime dependency in Similarity Component
6 files changed