Extract group code for single key and single result as a function