Refactor lowering code to separate function. Rename helper functions.
Refactor lowering code to separate function. Rename helper functions.

grzes/djangae,kirberich/djangae,kirberich/djangae,potatolondon/djangae,kirberich/djangae,grzes/djangae,potatolondon/djangae,grzes/djangae