Reduce boilerplate code