ActionsParser refactor

@zdne Is this test case correct?