Seperating API Logic from Platform Logic