Refactoring getting hstore value of key