Reference shortening: simplified code for getting resolve session