Greatly simplified service/value.clj's ranking code.