Notification function called whenever a layout is about to be copied.
This function is called before the operation.