Clean duplications

// Exuse my beginner's English

Hello!
I request some small clean up If you want this...
This extract some duplicate code fragments into private methods, above all.