I have data that i need to get (and modify) from getters and pass it to two lifecycle hooks. How to do it without code duplication.