Refactor project and platform services

We need this refactoring in order to reuse code for `iOSProjectService`
`action` shouldn't be any. Rather, it should be, let's say, `action: (...args: any[]) => void`.