moved logic from createAction into own service - prepares re-usage in upcoming quickstart