Splits service.py into multiple modules