Move all records common block to method