Relocating files to `lib` to separate concerns