Extract context for record decl