remove unused `#generalized_table` and `#optional_parts`

These methods were copied from journey at https://github.com/rails/rails/commit/56fee39c392788314c44a575b3fd66e16a50c8b5#diff-d89de8881fc4b9f10cb3e4fc7b2463f3R53 and https://github.com/rails/rails/commit/56fee39c392788314c44a575b3fd66e16a50c8b5#diff-2cfaf53c860732fea8689d6f2002594bR78. However it looks the methods were unused in journey at those point as well.

`grep -nr 'generalized_table' .`
`grep -nr 'optional_parts' .`

To find other potentially unused methods in ruby projects you can use the gem _cleanup_ from https://github.com/QFocusLabs/cleanup.