Revert "Revert "refactoring: reducing method length""

This reverts commit 7fba8af46eb6ef32eb95ab9f673b7945e5bdec6e.
Revert "Revert "refactoring: reducing method length""

This reverts commit 83392d5b5df60aa1098310478d94eb84241d0405.
add .gitignore
add .gitignore
Remove scope test as this dependency is required at runtime
Fix bug in SOSContents with calling wrong method