refactor: Separate code into files.