Split the file into class definitions and query functions.
Renamed file for a more appropriate name.
Replaced component by its two new parts.