Extract table creation/destruction from before/after block