Extensive refactoring of bike container methods using lambdas