This file seems to have many concerns. It might be good to split it out into a few smaller files, possibly one for `PlinesAPI` and one for the other classes, or possibly one per class.