refactoring parse action deserialization