Refactoring layout get source