Refactoring hardcoded ranking strategy to be injected and components documentation