Refactor getting to implement behavior as command