Revert "Add method visibility"

This reverts commit 3975f35486a5d870037dc72838662e5a1f307bab.