Can you extract this into a separated method?