I will also extract this to a separate method, this behavior is being repeated quite a few times.