Make all @Bean methods public

Fixes gh-1571