PIM-2124: Optimize method to get common attributes