All separate things should be in different files.
And files are just key/values anyway.
And files are just key/values anyway.
A file is a very abstracted concept and it technically can mean a lot of different things depending on the file system.
However, it is a very good abstraction that's nearly universal and practically there is little to no reason not to use them to organize things.