Dev

This code seems to be repeated. Would it make sense to extract to a method ?