See data-oriented programming (not to be confused with data-driven). In the end code just processes data.