[MINOR] Break out processing of clear table

This will allow the code to be reused
for showing a table filtered by key
1 file changed