If you find that you are creating partial layouts on a regular basis, this may be a sign that too many states and functionality are being thrown into a small number of classes. This can make your code more complex to maintain and justify, and therefore more difficult to unit test. It can also lead to code duplication or circular dependencies if you later find out that some other component in your system needs a subset of the functions contained in one of your large classes.
-, . , , , . , , Spring Guice, , .
- , . , , , , . . , , , , , , , , , , . , "" . . , , , unit test.