Separate some code to 'sub get-bare-content'

Separate some code to 'sub get-bare-content'.
Avoid bag with run HTML test with Parrot

Avoid bag with run HTML test with Parrot.