Identical blocks of code found in 2 locations. Consider refactoring. https://codeclimate.com/github/toymak3r/CineMonster/server/Server.py#issue_6118c5eec44d31000100003b